package com.rickpan.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * API Key配置请求DTO
 */
public class ApiKeyRequest {

    @NotBlank(message = "API Key不能为空")
    @Size(max = 500, message = "API Key长度不能超过500字符")
    private String apiKey;

    @Size(max = 100, message = "模型名称不能超过100字符")
    private String model = "deepseek/deepseek-chat-v3-0324:free";

    // 构造函数
    public ApiKeyRequest() {}

    public ApiKeyRequest(String apiKey, String model) {
        this.apiKey = apiKey;
        this.model = model;
    }

    // Getter 和 Setter 方法
    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Override
    public String toString() {
        return "ApiKeyRequest{" +
                "model='" + model + '\'' +
                '}';
    }
}
